<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="{:U($Think.ACTION_NAME)}" method="post">
        <input type="hidden" name="pageSize" value="{$Think.session.pageSize}">
        <input type="hidden" name="pageCurrent" value="{$Think.session.pageCurrent}">
        <input type="hidden" name="orderField" value="{$Think.session.orderField}">
        <input type="hidden" name="orderDirection" value="{$Think.session.orderDirection}">
        <div class="bjui-searchBar">
            <label>发问时间：</label><input type="text" readonly="readonly" name="qtime" value="{$search.qtime}" class="form-control" size="12" data-toggle="datepicker" />
            <label>回答时间：</label><input type="text" readonly="readonly" name="atime" value="{$search.atime}" class="form-control" size="12" data-toggle="datepicker" />
            <label>提问者：</label><input type="text" name="mnickname" value="{$search.mnickname}" class="form-control" size="12" />
            <label>回答者：</label><input type="text" name="uname" value="{$search.uname}" class="form-control" size="12" />
            <button type="submit" class="btn-default" data-icon="search">查询</button>
            <div class="pull-right">
                <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">功能操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" role="menu">
                        <li><a href="{:U('del')}" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" data-idname="ids" data-group="ids"><i class="fa fa-times"></i> 删除数据</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </form>
</div>

<div class="bjui-pageContent">
    <!-- 内容区 -->
    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
        <tr>
            <th>ID</th>
            <th>发问时间</th>
            <th>提问者</th>
            <th>问题</th>
            <th>回答时间</th>
            <th>回答者</th>
            <th width="26"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
            <th width="180">操作</th>
        </tr>
        </thead>
        <volist name="list" id="vo">
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.qtime|date="Y-m-d H:i:s",###}</td>
                <td>{$vo.mnickname}</td>
                <td>{$vo['qcontent']|cutStr=###,40}</td>
                <td><empty name="vo.atime">
                    等待回答
                    <else />
                    {$vo.atime|date="Y-m-d H:i:s",###}
                </empty></td>
                <td>{$vo.mnickname}</td>
                <td><input type="checkbox" name="ids" data-toggle="icheck" value="<?= $vo[id]?>"></td>
                <td>
                    <a href="{:U('isPass?id='.$vo[id].'&isPass='.$vo[isPass])}" class="btn btn-default" data-toggle="doajax" data-confirm-msg="确定要<if condition="$vo[isPass] eq 0">审核<else />取消审核</if>该记录吗？">
                        <if condition="$vo[isPass] eq 0">审核<else />取消审核</if>
                    </a>
                    <a href="{:U('info?id=' . $vo[id])}" class="btn btn-default" data-toggle="dialog" data-width="1000" data-height="600" data-id="dialog-mask" data-mask="true">查看详细</a>
                    <a href="{:U('del?id='.$vo[id])}" class="btn btn-default" data-toggle="doajax" data-confirm-msg="确定要删除选中项吗？">删除</a>
                </td>
            </tr>
        </volist>
    </table>
</div>

<include file="./App/Common/View/Common/pageFooter.html" />